﻿namespace DualityClient
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.Xna.Framework;
    using Microsoft.Xna.Framework.Input;
    using Microsoft.Xna.Framework.Graphics;
    using DualityEngine.Business;

    public class MouseCursor
    {
        public MouseCursor()
        {
        }

        public void Draw(GameTime gameTime)
        {
            switch (GameState.Instance.gameState)
            {
                case eGameState.INGAME:
                    ResourceManager.Instance.spriteBatch.Draw(ResourceManager.Instance.fpscursor, new Vector2(Mouse.GetState().X - (ResourceManager.Instance.fpscursor.Width / 2), Mouse.GetState().Y - (ResourceManager.Instance.fpscursor.Height / 2)), Color.White);
                    break;
                case eGameState.LOGINMENU:
                    ResourceManager.Instance.spriteBatch.Draw(ResourceManager.Instance.cursoridle, new Vector2(Mouse.GetState().X - (ResourceManager.Instance.fpscursor.Width / 2), Mouse.GetState().Y - (ResourceManager.Instance.fpscursor.Height / 2)), Color.White);
                    break;
            }
        }
    }
}
